home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP Şubat 1998.iso / drivers / SESK / tumspinn / CLNUTILS.BAT < prev    next >
DOS Batch File  |  1997-06-12  |  1KB  |  52 lines

  1. if %1 == /f goto :0
  2. if %1 == /d goto :1
  3. if %1 == /g goto :2
  4. goto :out
  5.  
  6. :0
  7. clnutils /i
  8. find /i /c "%2" %3 | sort /R >> %temp%\pininst.bat
  9. call %temp%\pininst.bat
  10.  
  11. set pintemp=---------- %3: 0
  12.  
  13. rem set
  14. rem pause
  15.  
  16. rem if %pininst%==%pintemp% goto :notfound
  17.  
  18. call clnutils /c pininst pintemp
  19. if not errorlevel 1 goto :notfound
  20.  
  21. echo %3 contains strings related to TBS Pro cards.  
  22. echo We strongly recommend that you remove this file from your system.
  23. del /P %3
  24. goto :end
  25.  
  26. :notfound
  27. rem echo.
  28. rem echo Ok, then let's not worry about this one.
  29.  
  30. :end
  31. del %temp%\pininst.bat
  32. set pininst=
  33. set pintemp=
  34. goto :out
  35.  
  36. :1
  37. if not exist "%pinbase%\*.*" goto :out
  38. choice Delete the complete "%pinbase%" folder with all its sub-directories 
  39. if not errorlevel 2 deltree /Y "%pinbase%"
  40. set pinbase=
  41. echo.
  42. goto :out
  43.  
  44. :2
  45. if not exist "%windir%\Start Menu\Programs\%pingroup%\*.*" goto :out
  46. choice Delete the "%pingroup%" program group 
  47. if not errorlevel 2 deltree /Y "%windir%\Start Menu\Programs\%pingroup%"
  48. set pingroup=
  49. echo.
  50. goto :out
  51.  
  52. :out